package com.overseasShopping.Biz.impl;

import java.util.List;

import com.overseasShopping.Base.DAO.ComplaintDAO;
import com.overseasShopping.Biz.ComplaintBiz;
import com.overseasShopping.pojo.Complaint;


public class ComplaintBizImpl implements ComplaintBiz{
	private ComplaintDAO complaintdao;
	
	
	public ComplaintDAO getComplaintdao() {
		return complaintdao;
	}

	public void setComplaintdao(ComplaintDAO complaintdao) {
		this.complaintdao = complaintdao;
	}

	public void update(Complaint complaint) {
		complaintdao.update(complaint);
	}


	public Complaint get(int id) {
		return complaintdao.get(id);
	}

	public void save(Complaint complaint) {
		complaintdao.save(complaint);
		
	}

	public void delete(Complaint complaint) {
		complaintdao.delete(complaint);
	}

	public List<Complaint> getmycomplaintlistByuserid(String userId) {
		return complaintdao.getmycomplaintlistByuserid(userId);
	}

	
	

}
